cmake_minimum_required(VERSION 3.5)

project(locator_jsonrpc_cpp)

set(CMAKE_CXX_STANDARD 17)

find_package(CURL REQUIRED)
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${CURL_INCLUDE_DIR})

# Find PCL
find_package(PCL REQUIRED)

# Set up include directories and linker flags
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

set(SOURCES
    src/locator_jsonrpc_client.cpp    

)

add_executable(${PROJECT_NAME} ${SOURCES})

# target_include_directories(${PROJECT_NAME} PRIVATE ${Curses_INCLUDE_DIRS})
# target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${CURSES_LIBRARIES})
# target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ncurses)
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${PCL_LIBRARIES})